package com.klm.common.constant;

import lombok.Getter;

/**
 * 常量
 *
 * @author Mark
 */
public class BaseConstant {

    /**
     * 请求头内的语种标识
     */
    public static final String HEADER_LANG_CODE = "LANG-CODE";

    public static class ThreadLocal {

        public static final String TRAN_SWITCH = "TRAN_SWITCH";

        public static final String TRAN_SWITCH_OPEN = "1";

        public static final String TRAN_SWITCH_CLOSE = "0";

        public static final String TRAN_LANG_CODE = "LANG_CODE";


    }

    /**
     * 刪除標識  【1 未刪除/0 已刪除】
     */
    public static class DeleteFlag {

        private DeleteFlag() {
        }

        /**
         * 已刪除
         */
        public static final String IS_DELETED = "0";
        /**
         * 未刪除
         */
        public static final String NOT_DELETED = "1";
    }

    /**
     * 基本字符串 常量
     */
    public static class STR {
        public static final String MINUS = "-";
        public static final String EMPTY = "";
        public static final String ZERO = "0";
        public static final String ONE = "1";
        public static final String TWO = "2";
        public static final String THREE = "3";
        public static final String FOUR = "4";
        public static final String FIVE = "5";
        public static final String NINE = "9";
        public static final String TEN = "10";
        public static final String USD = "USD";
        public static final String NULL = "null";
    }
    /* *********************************************** ENUM - START ******************************************** */


    /**
     * 公用狀態 【0 禁用/有效】 【1 啟用/無效】
     */
    @Getter
    public enum CommonStatus {

        /**
         * 【1 啟用/無效】
         */
        ENABLE("1"),

        /**
         * 【0 禁用/有效】
         */
        DISABLE("0");


        private final String value;

        CommonStatus(String value) {
            this.value = value;
        }

    }
    /* *********************************************** ENUM - END ******************************************** */

}
